Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance: MapSector system for improved performance and flexibility #2496

Merged
merged 13 commits into from
May 22, 2024

Conversation

mehah
Copy link
Contributor

@mehah mehah commented Mar 26, 2024

Introduces a new map sector system using a hashmap instead of a node-based structure, which significantly improves search performance. It stores tiles and creatures for each area, and is critical for server functionality.

Credits @SaiyansKing

@mehah mehah changed the title perf: Sayajin Map Sector perf: Map Sector by Sayajin Mar 26, 2024
@majestyotbr majestyotbr changed the title perf: Map Sector by Sayajin perf: Map Sector by SaiyansKing Mar 26, 2024
@Chapeleiiro
Copy link
Contributor

What will this change, can you explain to make testing easier?

@mehah
Copy link
Contributor Author

mehah commented May 22, 2024

What will this change, can you explain to make testing easier?

uses hashmap instead of node, which is much faster for searching.

It's basically where the tiles and creatures in that area are stored, if it's broken, the server won't work.

@dudantas dudantas changed the title perf: Map Sector by SaiyansKing enhance: MapSector system for improved performance and flexibility May 22, 2024
@mehah mehah merged commit c57f5a2 into main May 22, 2024
39 checks passed
@mehah mehah deleted the sayajin_mapsector branch May 22, 2024 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants